#!/bin/bash
if [ ! -f /etc/crontab ];then
  apt-get install cron
  echo "* 23 * * * /sbin/reboot" >> /etc/crontab
  service cron restart
fi